from PyQt4.QtCore import QObject

# General Config

Len = 15

interval = 200


class ROLES(QObject):
    vacant = 0
    firsthand = 1
    secondhand = -1
    illegal = -2


def opposite_role(role):
    return -role


class PLAYER(QObject):
    manPlayer = 0
    autoPlayer = 1
    onlinePlayer = 2

DEBUG = True

# Online Config

SERVER = 'http://127.0.0.1:8000'

# Autoplayer Config


class SCORE(QObject):
    ONE = 10
    TWO = 200
    THREE = 1000
    FOUR = 100000
    FIVE = 100000
    BLOCKED_ONE = 1
    BLOCKED_TWO = 10
    BLOCKED_THREE = 100
    BLOCKED_FOUR = 10000

SEARCH_DEEP = 6

DEEP_DESCEND = 8

MAX_COUNT = 8

CHECKMATE_DEEP = 5

THRESHOLD = 1.1

CACHE = False
